package Huihu.src.IO;

import java.io.*;
/*
一次读写一行
 */
public class Hclkbwj2 {
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new FileReader("Libs/1.txt"));
        BufferedWriter bw=new BufferedWriter(new FileWriter("Libs/2.txt"));
        String str;
        while ((str = br.readLine()) != null){//readLine一次读一行
                bw.write(str);
                bw.newLine();//newLine换行
        }
        br.close();
        bw.close();
    }
}
